import http from '@/utils'

class  Classlist {
    // 获取class列表
    getList(reload) {
        let url = '/classlist/index';
        return http.get(url, reload)
    }

    // class详情
    getDetailInfo(reload) {
      let url = '/classlist/detail';
      return http.get(url, reload)
    }
    
    // 获取所有老师
    getAllTeacher(reload) {
      let url = '/classlist/teacher';
      return http.get(url, reload)
    }

    // 编辑class
    editClass(reload) {
      let url = '/classlist/edit';
        return http.post(url, reload)
    }

}

export default new Classlist()